.class public Les/yw;
.super Ljava/lang/Object;
.source "AppUpdateHelper.java"


# direct methods
.method public static a(Landroid/app/Activity;)V
    .locals 1
    .annotation build Landroidx/annotation/UiThread;
    .end annotation

    const/4 v0, 0x0

    .line 1
    invoke-static {p0, v0, v0}, Les/yw;->a(Landroid/app/Activity;ZZ)V

    return-void
.end method

.method private static a(Landroid/app/Activity;Les/xw$b;ZZ)V
    .locals 4

    .line 32
    new-instance v0, Les/yw$a;

    invoke-direct {v0, p0, p2, p3}, Les/yw$a;-><init>(Landroid/content/Context;ZZ)V

    const p3, 0x7f0c00f5

    .line 33
    invoke-virtual {v0, p3}, Landroid/app/Dialog;->setContentView(I)V

    xor-int/lit8 p3, p2, 0x1

    .line 34
    invoke-virtual {v0, p3}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    xor-int/lit8 p3, p2, 0x1

    .line 35
    invoke-virtual {v0, p3}, Landroid/app/Dialog;->setCancelable(Z)V

    const p3, 0x7f0901c5

    .line 36
    invoke-virtual {v0, p3}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p3

    new-instance v1, Les/yw$b;

    invoke-direct {v1, p2, v0, p0, p1}, Les/yw$b;-><init>(ZLcom/estrongs/android/ui/dialog/n0;Landroid/app/Activity;Les/xw$b;)V

    invoke-virtual {p3, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p3, 0x7f090d43

    .line 37
    invoke-virtual {v0, p3}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    .line 38
    invoke-virtual {p1}, Les/xw$b;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p3, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const p3, 0x7f090d58

    .line 39
    invoke-virtual {v0, p3}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    .line 40
    invoke-virtual {p0}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object p0

    const v1, 0x7f110b1c

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {p1}, Les/xw$b;->e()Ljava/lang/String;

    move-result-object p1

    const/4 v3, 0x0

    aput-object p1, v2, v3

    invoke-virtual {p0, v1, v2}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p0

    invoke-virtual {p3, p0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const p0, 0x7f09022f

    .line 41
    invoke-virtual {v0, p0}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/ImageView;

    if-eqz p2, :cond_0

    const/16 p1, 0x8

    .line 42
    invoke-virtual {p0, p1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0

    .line 43
    :cond_0
    invoke-virtual {p0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 44
    new-instance p1, Les/ww;

    invoke-direct {p1, v0}, Les/ww;-><init>(Lcom/estrongs/android/ui/dialog/n0;)V

    invoke-virtual {p0, p1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 45
    :goto_0
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/n0;->show()V

    return-void
.end method

.method private static a(Landroid/app/Activity;ZZ)V
    .locals 13
    .annotation build Landroidx/annotation/UiThread;
    .end annotation

    .line 2
    invoke-static {}, Lcom/estrongs/android/util/f0;->c()Z

    move-result v0

    const v1, 0x7f110b23

    if-nez v0, :cond_1

    if-eqz p1, :cond_0

    .line 3
    invoke-static {v1}, Lcom/estrongs/android/ui/view/d;->a(I)V

    :cond_0
    return-void

    .line 4
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/app/messagebox/c;->b()Lcom/estrongs/android/pop/app/messagebox/c;

    move-result-object v0

    sget-object v2, Les/fl;->D:Ljava/lang/String;

    invoke-virtual {v0, v2}, Lcom/estrongs/android/pop/app/messagebox/c;->a(Ljava/lang/String;)Les/gl;

    move-result-object v0

    if-nez v0, :cond_3

    if-eqz p1, :cond_2

    .line 5
    invoke-static {v1}, Lcom/estrongs/android/ui/view/d;->a(I)V

    :cond_2
    return-void

    .line 6
    :cond_3
    invoke-virtual {v0}, Les/gl;->b()Les/ll;

    move-result-object v0

    const v1, 0x7f110b22

    const-string v2, "appUpdate"

    if-nez v0, :cond_5

    const-string p0, "Cms\u914d\u7f6e\u4e3a\u7a7a\u6216\u62c9\u53d6\u5931\u8d25"

    .line 7
    invoke-static {v2, p0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p1, :cond_4

    .line 8
    invoke-static {v1}, Lcom/estrongs/android/ui/view/d;->a(I)V

    :cond_4
    return-void

    .line 9
    :cond_5
    check-cast v0, Les/xw$b;

    .line 10
    iget-boolean v3, v0, Les/ll;->b:Z

    if-nez v3, :cond_7

    const-string p0, "cms\u914d\u7f6e\u5173\u95ed"

    .line 11
    invoke-static {v2, p0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p1, :cond_6

    .line 12
    invoke-static {v1}, Lcom/estrongs/android/ui/view/d;->a(I)V

    :cond_6
    return-void

    :cond_7
    const-wide/16 v3, 0x2765

    .line 13
    invoke-virtual {v0}, Les/xw$b;->d()J

    move-result-wide v5

    cmp-long v7, v3, v5

    if-ltz v7, :cond_9

    const-string p0, "\u5f53\u524d\u7248\u672c\u53f7\uff1a10085"

    .line 14
    invoke-static {v2, p0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 15
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    const-string p2, "\u5347\u7ea7\u7248\u672c\u53f7\uff1a"

    invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Les/xw$b;->d()J

    move-result-wide v3

    invoke-virtual {p0, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {v2, p0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    const-string p0, "\u65e0\u53ef\u7528\u4e8e\u5347\u7ea7\u7684\u7248\u672c\uff1a"

    .line 16
    invoke-static {v2, p0}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p1, :cond_8

    .line 17
    invoke-static {v1}, Lcom/estrongs/android/ui/view/d;->a(I)V

    :cond_8
    return-void

    .line 18
    :cond_9
    invoke-virtual {v0}, Les/xw$b;->f()Z

    move-result v3

    .line 19
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v4

    const/4 v5, 0x1

    if-nez v3, :cond_c

    if-eqz p2, :cond_a

    goto :goto_0

    .line 20
    :cond_a
    invoke-virtual {v4}, Lcom/estrongs/android/pop/l;->M()J

    move-result-wide v6

    .line 21
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v8

    .line 22
    invoke-virtual {v4}, Lcom/estrongs/android/pop/l;->y1()Z

    move-result v4

    .line 23
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "\u95f4\u9694\u65f6\u957f(\u5206)\uff1a"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sub-long/2addr v8, v6

    const-wide/16 v6, 0x3e8

    div-long v6, v8, v6

    const-wide/16 v11, 0x3c

    div-long/2addr v6, v11

    invoke-virtual {v10, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v2, v6}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 24
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "\u81ea\u52a8\u68c0\u6d4b\u5347\u7ea7\u5f00\u5173\uff1a"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v2, v6}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v4, :cond_b

    const-wide/32 v6, 0x5265c00

    cmp-long v4, v8, v6

    if-lez v4, :cond_b

    goto :goto_1

    :cond_b
    const/4 v4, 0x0

    const/4 v5, 0x0

    goto :goto_1

    .line 25
    :cond_c
    :goto_0
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "\u5f3a\u5236\u5347\u7ea7\uff1a"

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, v4}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 26
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "\u662f\u5426\u6765\u81ea\u5f3a\u5236\u68c0\u6d4b\uff1a"

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, v4}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 27
    :goto_1
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "\u80fd\u5426\u5c55\u793a\u5347\u7ea7\u5f39\u7a97\uff1a"

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, v4}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v5, :cond_d

    if-eqz p0, :cond_d

    .line 28
    invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z

    move-result v4

    if-nez v4, :cond_d

    const-string p1, "\u5c55\u793a\u5347\u7ea7\u5f39\u7a97"

    .line 29
    invoke-static {v2, p1}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 30
    invoke-static {p0, v0, v3, p2}, Les/yw;->a(Landroid/app/Activity;Les/xw$b;ZZ)V

    goto :goto_2

    :cond_d
    if-eqz p1, :cond_e

    .line 31
    invoke-static {v1}, Lcom/estrongs/android/ui/view/d;->a(I)V

    :cond_e
    :goto_2
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/n0;Landroid/view/View;)V
    .locals 0

    .line 46
    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/n0;->dismiss()V

    return-void
.end method

.method public static b(Landroid/app/Activity;)V
    .locals 1
    .annotation build Landroidx/annotation/UiThread;
    .end annotation

    const/4 v0, 0x1

    .line 1
    invoke-static {p0, v0, v0}, Les/yw;->a(Landroid/app/Activity;ZZ)V

    return-void
.end method
